import request from '@/utils/request'

export function updateInfo(reqObj) {
  return request.post('/update/inside/user/info',reqObj)
}

export function updatePwd(pwdData) {
  const {userId, oldPwd, newPwd} = pwdData;
  return request({
    url: '/update/inside/user/password',
    method: 'post',
    data: {
      userId,
      oldPwd,
      newPwd
    }
  })
}
